<template>
  <div>
    <div>测试vuexB:</div>
    <button @click="add">vistors增加</button>
    <button @click="reduce">vistors减少</button>
    {{$store.state.vistors.vistors}}
  </div>
</template>

<script>
import { mapActions } from 'vuex'
export default {
  methods: mapActions('vistors', ['add', 'reduce'])
}
</script>

<style>
</style>
